import { ItemCodeRenderer } from "../../exploreShop/ItemCodeRenderer";
import { SReward } from "../../../../../Message/Public/SReward";
import { ItemData } from "../../../resource/info/ItemData";
//class RewardCodeRenderer
    
    export  class RewardCodeRenderer extends ItemCodeRenderer
    {
        constructor()
        {
            super();
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            var loc1=arg1 as SReward;
            if (loc1) 
            {
                _item.itemData = new ItemData(loc1.code);
                _item.setAmountText(loc1.num);
            }
            return;
        }
    }
